//
//  VoiceReplyNoDataCell.m
//  ShowYork
//
//  Created by hxh on 2021/4/23.
//  Copyright © 2021 hxh. All rights reserved.
//

#import "VoiceReplyNoDataCell.h"

@interface VoiceReplyNoDataCell ()
@property (nonatomic,strong)UILabel *noDataLb;
@end

@implementation VoiceReplyNoDataCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setUI];
    }
    return self;
}
- (void)setUI{
    self.noDataLb = [[UILabel alloc]init];
    self.noDataLb.text = @"还没有评论，快来抢沙发～";
    self.noDataLb.textAlignment = NSTextAlignmentCenter;
    self.noDataLb.textColor = C153;
    self.noDataLb.font = font(12);
    [self.contentView addSubview:self.noDataLb];
    [self.noDataLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.equalTo(self.contentView);
        make.top.equalTo(self.contentView).offset(64);
        make.bottom.equalTo(self.contentView).offset(-142);
    }];
}

+(instancetype)cellWithTableView:(UITableView *)tableView{
    NSString *ID = @"VoiceReplyNoDataCell";
    VoiceReplyNoDataCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[VoiceReplyNoDataCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}
@end
